import Vue from 'vue'
import App from './App.vue'
import router from "./router" //自动扫描
import store from "./store";
import fastClick from 'fastclick'


//fastClick.attach(document.body);
Vue.config.productionTip = false

//建立中转站，实现组件与组件之间的传值
let bus = new Vue()
Vue.prototype.bus = bus;


if ('addEventListener' in document) {
  document.addEventListener('DOMContentLoaded', function () {
    fastClick.attach(document.body);
  }, false);
}

new Vue({
  router,
  store,
  render: h => h(App),
}).$mount('#app')
